import { combineReducers } from 'redux';
import {
    createNavigationReducer,
  } from 'react-navigation-redux-helpers';

import { AppNavigator } from '../routes/index';

import banner from './banner';
import user from './user';
import chatlog from './chatlog';
import gift from './gift';

const navReducer = createNavigationReducer(AppNavigator);

const rootReducer = combineReducers({
    nav: navReducer,
    banner,
    user,
    chatlog,
    gift,
});

export default rootReducer;